#include "stdafx.h"
#include "TestState.h"
#include "Systems/TestSystem.h"
#include "GameState.h"

using namespace ZeEngine;

#include "Time/TimeManager.h"
#include "EntityManager.h"

#include "TransformSystem.h"

using namespace ZeEngine;
TestState::TestState()
{
}

TestState::~TestState()
{
}

TimeManager time;

void TestState::Init(ResourceManager& resourceManager, EntityManager& entityManager)   
{    
    time.Start();

    AddSystem(new TestSystem());
    AddSystem(new TransformSystem());
    AddSystem(new RenderSystem());
}

bool TestState::Update(EntityManager& entityManager)
{
    time.UpdateClock(GameEngine::GetDeltaMS());

    return false;
}